#ifndef MOSAICDIALOG_H
#define MOSAICDIALOG_H

#include <QDialog>

namespace Ui {
class MosaicDialog;
}

class MosaicDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit MosaicDialog(QWidget *parent = 0);
    ~MosaicDialog();

    void setSize(int size);
    void setSizeMaximum(int max);

signals:
    void sizeChanged(int);
    void applyOperator(QString);
    void cancelOperator();

protected:
    void showEvent(QShowEvent *);
    void closeEvent(QCloseEvent *);
    void paintEvent(QPaintEvent *);

private slots:
    void emitSizeChanged(int size);
    void applyButtonClicked();
    void cancelButtonClicked();
    
private:
    Ui::MosaicDialog *ui;
};

#endif // MOSAICDIALOG_H
